<%@ page import="org.jsoup.Jsoup" %>
<%@ page import="org.jsoup.Connection" %>
<%@ page import="org.jsoup.nodes.Document" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<!DOCTYPE html>
<%
    String html = request.getParameter("html");
    Document document  = Jsoup.parse(html);
    int tr = document.getElementsByTag("tr").size();
    response.getWriter().write(tr);
%>
<html>
<body>
<script src="/js/jquery/jquery-1.4.2.min_wev8.js"></script>
<script>
</script>
<div id="main">
</div>
</body>
</html>